<template>
    <el-form :model="form" ref="formData" :rules="rules" label-width="80px" :inline="false" size="normal">
        <el-row :gutter="24">
            <el-col :span="24">
                <el-form-item label="上级部门">
                    <el-select v-model="formData.parentId" placeholder="请选择">
                        <el-option label="一级部门" value="1"></el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="部门名称">
                    <el-input v-model="formData.name"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="负责人">
                    <el-input v-model="formData.leader"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="联系电话">
                    <el-input v-model="formData.phone"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="邮箱">
                    <el-input v-model="formData.email"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <!-- 状态 -->
                 <el-form-item label="状态">
                    <el-select v-model="formData.status" placeholder="请选择">
                        <el-option label="启用" value="1"></el-option>
                        <el-option label="禁用" value="0"></el-option>
                    </el-select>
                </el-form-item>
            </el-col>
        </el-row>


        <el-form-item>
            <el-button type="primary" @click="onSubmit">立即创建</el-button>
            <el-button>取消</el-button>
        </el-form-item>
    </el-form>

</template>

<script setup>
import { ref } from 'vue'
let formData = ref({})
</script>

<style scoped></style>
